import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter_blog/Home.dart';

import 'package:flutter_bmfbase/BaiduMap/bmfmap_base.dart'
    show BMFMapSDK, BMF_COORD_TYPE;
// import 'package:flutter_bmfbase/BaiduMap/bmfmap_base.dart'
//     show BMFMapSDK, BMF_COORD_TYPE;

// import 'package:flutter_bmfbase/BaiduMap/bmfmap_base.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  if (Platform.isIOS) {
    BMFMapSDK.setApiKeyAndCoordType(
        'rMaozb7kryQYFO6gdf1GtXEzUvu0w6UC', BMF_COORD_TYPE.BD09LL);
  }
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: '没有终点的旅程',
      theme: ThemeData(
        primaryColor: Color.fromRGBO(196, 148, 81, 1),
        // primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: Home(),
    );
  }
}
